﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MuseLibrary.Packets
{
    public class ErrorPacket : Packet
    {
        internal ErrorPacket()
        {

        }

        protected override void DoInitialisation()
        {
            _errorFlags = _rawData.To32BitInteger(1);
        }

        private int _errorFlags;

        public int ErrorFlags
        {
            get { return _errorFlags; }
        }

        public override PacketType Type
        {
            get { return PacketType.ErrorFlags; }
        }

        public override int Length
        {
            get { return 5; }
        }
    }
}
